package course.dmsSpringBoot.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import course.dmsSpringBoot.entity.Customer;
import course.dmsSpringBoot.mapper.CustomerMapper;
import course.dmsSpringBoot.service.CustomerService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zouran
 * createDate：2023/12/17  23:09
 */
@Service

public class CustomerServiceImpl extends ServiceImpl<CustomerMapper,Customer> implements CustomerService {
    private final CustomerMapper customerMapper;

    public CustomerServiceImpl(CustomerMapper customerMapper) {
        this.customerMapper = customerMapper;
    }


    @Override
    public List<Customer> queryCustomerByName(String name) {
        return customerMapper.queryCustomerByName(name);
    }
}
